<?php
	defined('ALLOW') or die('Lỗi kết nối!');
    define("PATH","");
	
	switch($action)
	{		
		// Đăng xuất
		case "dangxuat":			        include 'dangxuat.php';							break;
		
		// Đổi mật khẩu
		case "doimatkhau":			        include '../doimatkhau.php';					break;
		case "doimatkhau_submit":		    include '../doimatkhau_submit.php';				break;
		
		// Quản lý người dùng
		case "danhsach_nguoidung":	        include 'danhsach_nguoidung.php';				break;
		case "them_nguoidung":		        include 'them_nguoidung.php';					break;
        case "them_nguoidung_submit":		include 'them_nguoidung_submit.php';			break;
        case "xoa_nguoidung":		        include 'xoa_nguoidung.php';					break;
        case "sua_nguoidung":		        include 'sua_nguoidung.php';					break;
        case "sua_nguoidung_submit":		include 'sua_nguoidung_submit.php';				break;
        case "nguoidung_capnhat":	        include '../nguoidung_capnhat.php';				break;
        case "nguoidung_capnhat_submit":	include '../nguoidung_capnhat_submit.php';		break;
		
		// Thêm máy tính
		case "them_sanpham":		        include("them_sanpham.php");    				break;
		case "them_sanpham_submit":	        include("them_sanpham_submit.php");				break;
		
		// Cập nhật máy tính
		case "sua_maytinh":		            include("sua_maytinh.php");  					break;
		case "sua_maytinh_submit":	        include("sua_maytinh_submit.php");				break;
		//
		// Máy tính
		case "danhsach_maytinh":	        include("danhsach_maytinh.php");				break;
		case "sach_timkiem":		        include("sach_timkiem.php");					break;
		case "xoa_maytinh":			        include("xoa_maytinh.php");						break;
        
        //Loại máy tính
        case "danhsach_loaimaytinh":	        include("danhsach_loaimaytinh.php");				break;
        case "them_loaimaytinh":		        include("them_loaimaytinh.php");  					break;
		case "them_loaimaytinh_submit":	        include("them_loaimaytinh_submit.php");				break;
        case "sua_loaimaytinh":		            include("sua_loaimaytinh.php");  					break;
		case "sua_loaimaytinh_submit":	        include("sua_loaimaytinh_submit.php");				break;
        case "xoa_loaimaytinh":			        include("xoa_loaimaytinh.php");						break;
		
		//Đặt hàng
		case "danhsach_dathang":				include("danhsach_dathang.php");					break;
		case "danhsach_dathangmoi":				include("danhsach_dathangmoi.php");					break;
        case "xuly_dathang":				include("xuly_dathang.php");					break;
		
		// Giỏ hàng
		case "dathang":				        include("dathang.php");							break;
		case "dathang_danhsach":	        include("dathang_danhsach.php");				break;
		case "giohang":				        include("giohang.php");							break;
		case "xoagiohang":			        include("xoagiohang.php");						break;
		case "thanhtoan":			        include("thanhtoan.php");						break;
		case "thanhtoan_submit":	        include("thanhtoan_submit.php");				break;
		
        
        //Chủ đề
        case "danhsach_chude":	            include("danhsach_chude.php");			    	break;
        case "them_chude":	                include("them_chude.php");				        break;
        case "them_chude_submit":	        include("them_chude_submit.php");				break;
        case "xoa_chude":			        include("xoa_chude.php");						break;
        case "sua_chude":		            include("sua_chude.php");				     	break;
        case "sua_chude_submit":		    include("sua_chude_submit.php");			    break;
        
        //Bài viết
        case "danhsach_baiviet":	        include("danhsach_baiviet.php");				break;
        case "them_baiviet":	            include("them_baiviet.php");				    break;
        case "them_baiviet_submit":	        include("them_baiviet_submit.php");				break;
        case "xoa_baiviet":			        include("xoa_baiviet.php");						break;
        case "sua_baiviet":		            include("sua_baiviet.php");				        break;
        case "sua_baiviet_submit":		    include("sua_baiviet_submit.php");			    break;
        
        //Bình chọn
        case "danhsach_binhchon":		    include("danhsach_binhchon.php");				break;
        case "them_binhchon":		        include("them_binhchon.php");			        break;
        case "tuychon_binhchon":		        include("tuychon_binhchon.php");			        break;
        
		// Mặc định
		default:		                    include("danhsach_maytinh.php");			    break;
	}
?>